@extends('admin.layout.master')

@section('script')
<script src="/style/admin/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
<script>
	$(function(){
		$('.admin-posts').addClass('active');
		$(".content-textarea").wysihtml5();
	})
</script>
@stop
@section('content-header')
<section class="content-header">
    <h1>
        添加文章
        <small>{{link_to_route('admin.posts.index','所有文章')}}</small>
    </h1>
    <ol class="breadcrumb">
        <i class="fa fa-dashboard"></i><li><a href="#"> 首页</a></li>
        <li class="active">添加文章</li>
    </ol>
</section>
@stop

@section('content')
<div class="box box-primary">
    
    <!-- form start -->
    {{Form::open(array('url'=>'admin/posts'))}}
        <div class="box-body">
            <div class="form-group">
                {{Form::label('InputTitle','标题')}}
                {{Form::text('title','',array('placeholder'=>'请输入标题','class'=>'form-control'))}}
            </div>
            <div class='box'>
                <div class='box-header'>
                    <a href="#" class="btn">插入媒体</a>
                </div><!-- /.box-header -->
                <div class='box-body pad'>
                	<link href="/style/admin/css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
                    {{Form::textarea('content','',array('placeholder'=>'请输入文本','class'=>'content-textarea','style'=>'width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;'))}}
                </div>
            </div>
        </div><!-- /.box-body -->

        <div class="box-footer">
            {{Form::submit('立即发布',array('class'=>'btn btn-primary'))}}
        </div>
    </form>
</div>
@stop